<template>
  <div>
    <!-- href的值绑定一个变量 -->
    <!-- v-bind给标签设置一个属性 -->
    <!--  v-bind：属性名：'变量' -->
    <!-- ：属性名：'变量' -->
    <a :href="url">去百度</a>
    <img :src="imgSrc">
  </div>
</template>

<script>
export default {
  
  data() {
    return {
      url :'http://www.baidu.com',
      imgSrc:'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Faaaju.oicp.net%3A93%2Fpicture%2Fbiaoqing%2Fpic%2Fa%2F34%2F26107.jpeg&refer=http%3A%2F%2Faaaju.oicp.net&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1667548326&t=0d4715567fb7bdc88b476a047b9ea352'
    };
  },

  
 
};
</script>

<style >

</style>